﻿using Microsoft.EntityFrameworkCore;
using Microsoft.SqlServer;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QServices
{
    public partial class SqlServerDbContext:DbContext
    {
        public string dbConnectionstring {  get; set; }

        public SqlServerDbContext(string connstr)
        {
            this.dbConnectionstring=connstr;
        }

		protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
		{
            optionsBuilder.UseSqlServer(this.dbConnectionstring);
			base.OnConfiguring(optionsBuilder);
		}

		protected override void OnModelCreating(ModelBuilder modelBuilder)
		{
		
			base.OnModelCreating(modelBuilder);
		}



	}
}
